package com.zy.mapUser;

import com.zy.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

//接口名与SQL配置文件中的命名空间相同
public interface UserMapper
{
    //接口中方法名与SQL语句配置文件ID名相同
    public void insertUser(User user);
    public int deleteUser(int id);
    public int updateUser(User user);
    public User selectUser(int i);
    public List<User> selectUsers(String str);
    public List<User> findUserByPage(Map<String,Object> m);
    public List<User> findUsernameByPage(@Param("offsize") int offsize, @Param("pagesize") int pagesize);
    public List<Map<String,Object>> findUsernameByPages();
}
